package com.ssy.lingxi.workflow.repository;

import com.ssy.lingxi.workflow.entity.InternalTaskDefinition;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 内部流程定义Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-04-21
 */
@Repository
public interface InternalTaskRepository extends JpaRepository<InternalTaskDefinition, Long>, JpaSpecificationExecutor<InternalTaskDefinition> {
    List<InternalTaskDefinition> findByProcessKeyAndTaskNameAndTaskType(String processKey, String taskName, Integer taskType);
}
